-- GENERATED SPELL FOR [Ursoc] --


function spell0_26633(pUnit, Event) --@Crunch Armor,n/a--
pUnit:FullCastSpellOnTarget(52581,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26633', 6317, 1)
end

function spell1_26633(pUnit, Event) --@Old God\'s Influence,n/a--
pUnit:FullCastSpellOnTarget(52583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26633', 18000, 1)
end

function spell2_26633(pUnit, Event) --@Summon Blood of the Old God,n/a--
pUnit:FullCastSpellOnTarget(52560,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26633', 40322, 1)
end

function Sorts_26633(pUnit, Event)
local choix_sorts_26633 = math.random(0, 2)
if choix_sorts_26633 == 0 then
pUnit:RegisterEvent('spell0_26633', 1, 1)
end
if choix_sorts_26633 == 1 then
pUnit:RegisterEvent('spell1_26633', 1, 1)
end
if choix_sorts_26633 == 2 then
pUnit:RegisterEvent('spell2_26633', 1, 1)
end
end

function mob26633_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26633', math.random(1500, 3000), 1)
end

function mob26633_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26633_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26633_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26633, 1, 'mob26633_Action')
RegisterUnitEvent(26633, 2, 'mob26633_Leave')
RegisterUnitEvent(26633, 3, 'mob26633_Kill')
RegisterUnitEvent(26633, 4, 'mob26633_Die')
